export interface IGetResult {
  getResult(): ({
    code: number;
    message: string;
    data: any;
  });

  getPaginationResult(): ({
    code: number;
    message: string;
    data: PaginationData<any>;
  });
}

export interface IGetPaginationInfo <Info = unknown> {
  getPaginationInfo: () => Info;
}

export interface PaginationData <T extends Array<any>> {
  page: number;
  pageSize: number;
  total: number;
  totalPage: number;
  items: T;
}
